package Singleton;

public class MyFruit implements Cloneable{
    protected String kind;

    public Object clone()
    {
        Object obj = null;
        try
        {
            obj=super.clone();
        }catch (CloneNotSupportedException e)
        {
            e.printStackTrace();
        }
        return obj;
    }

    public void display()
    {
        System.out.println(kind);
    }

    public String get()
    {
        return kind;
    }

}
